package org.will.cqrs.command;

import org.reveno.atp.api.transaction.TransactionContext;
import org.will.ddd.domain.IAggregateRoot;

/**
 * Created by EdifierWill on 2016/8/11.
 */
public interface ICommandAction {

    void handler(ICommandAction a, TransactionContext ctx) throws Exception;

    void publishEvents(IAggregateRoot model,TransactionContext ctx);
}
